package cn.jbit.enumiminter;
/**
 * @author 张在成
 *
 * 自定义枚举类
 */
public enum Season implements TestInterface{

    SPRING{
        @Override
        public void show() {
            System.out.println("这里是春天");
        }
    },

    SUMMER{
        @Override
        public void show() {
            System.out.println("这里是夏天");
        }
    },

    AUTUM{
        @Override
        public void show() {
            System.out.println("这里是秋天");
        }
    },

    WINTER {
        @Override
        public void show() {
            System.out.println("这里是冬天");
        }
    };

    public static void main(String[] args) {

        Season season=Season.AUTUM;
        season.show();
        Season spring = Season.WINTER;
        spring.show();
    }
}